package vip.xiaonuo.modular.manage.biuserbusiness.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import vip.xiaonuo.modular.manage.biuserbusiness.entity.BiUserActivity;
import vip.xiaonuo.modular.manage.biuserbusiness.mapper.BiUserActivityMapper;
import vip.xiaonuo.modular.manage.biuserbusiness.service.BiUserActivityService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (BiUserActivity)表服务实现类
 *
 * @author makejava
 * @since 2022-08-10 18:46:33
 */
@Service("biUserActivityService")
public class BiUserActivityServiceImpl extends ServiceImpl<BiUserActivityMapper, BiUserActivity> implements BiUserActivityService {
    @Override
    public List<BiUserActivity> activityList(Long storeId, Long userId) {
        LambdaQueryWrapper<BiUserActivity> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(BiUserActivity::getStoreId,storeId);
        wrapper.eq(BiUserActivity::getUserId,userId);
        return this.getBaseMapper().selectList(wrapper);
    }
}

